package Demo01;

import java.util.*;

class bigComp implements Comparator<Integer> {

    @Override
    public int compare(Integer o1, Integer o2) {
        return o2 - 01;
    }
}

public class Test {


    public static void main(String[] args) {
        StringBuilder s = new StringBuilder();
        s.append("a");
        s.append("b");
        s.append("c");
        s.append("d");
        s.append("e");
        System.out.println(s);
    }
    public static void main07(String[] args) {
        Stack<Integer> stack = new Stack<>();
        stack.push(1);
        stack.push(2);
        stack.push(3);
        stack.push(4);
        while (!stack.isEmpty()) {
            System.out.print(stack.pop()+" ");
        }
    }
    public static void main06(String[] args) {
        Set<Integer> set = new HashSet<>();
        set.add(11);
        set.add(54);
        set.add(64);
        set.add(87);
        set.add(98);
        set.add(36);

        set.contains(22);
        set.contains(54);
    }
    public static void main05(String[] args) {
        Random random = new Random();
        TreeSet<Integer> set = new TreeSet<>();
        for (int i = 0; i < 10; i++) {
            int rad = random.nextInt();
            System.out.print(rad+" ");
            set.add(rad);
        }
        System.out.println();
        System.out.print(set+" ");
    }
    public static void main04(String[] args) {
        ArrayList<Integer> list = new ArrayList<>();
        list.add(1);
        list.add(2);
        list.add(3);
        list.add(4);
        list.add(5);
        list.add(6);
        list.add(7);
        list.add(8);
        for (Integer i : list) {
            System.out.print(i + " ");
        }
    }

    public static void main03(String[] args) {
        PriorityQueue<Integer> p = new PriorityQueue<>();
        p.offer(9);
        p.offer(3);
        p.offer(7);
        p.offer(2);
        p.offer(6);
        p.offer(4);
        p.offer(5);
        System.out.println(p.peek());
    }

    public static void main02(String[] args) {
        Map<String, Integer> map = new HashMap<>();
        map.put("张三", 56);
        map.put("李四", 87);
        map.put("王五", 58);

        System.out.println(map.get("李四"));
    }

    public static void main01(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int c = a + b;
        System.out.print("a+b=" + c);
    }
}



